<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .wrap {
            width: 200px;
            height: 200px;
            background-color: #6ff;
            margin: 50px;
            overflow: hidden;
            visibility: hidden;
        }

        .sub {
            width: 100px;
            height: 100px;
            background-color: red;
            margin: 50px;
            visibility: visible;
        }
    </style>
</head>

<body>
    <div class="wrap">
        <div class="sub"></div>
    </div>
</body>

</html>